<template>
  <div class="no-data-box">
    <img src="https://api.hyhengcai.com/static/no-data.png" alt="" v-show="type == '1'" />
    <img src="https://api.hyhengcai.com/static/no-data2.png" alt="" v-show="type == '2'" />
    <img src="https://api.hyhengcai.com/static/no-network.png" alt="" v-show="type == '3'" />
    <div>{{ msg }}</div>
  </div>
</template>

<script>
export default {
  name: 'NoData',
  props: {
    msg: String,
    type: {
      type: String,
      default: '1',
    },
  },
}
</script>

<style lang="scss" scoped>
.no-data-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  img {
    width: 280px;
    height: 280px;
  }
  & > div {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
  }
}
</style>
